package com.example.myDesignPatterns.行为型模式.责任链模式Responsibility.用责任链模式处理全局异常.handler;

import org.springframework.http.ResponseEntity;

public interface ExceptionHandler {
    boolean supports(Exception exception);
    ResponseEntity<Object> handle(Exception exception);
}
